package com.arch.dev.client.vo;

import java.util.Set;

import com.google.gwt.user.client.rpc.IsSerializable;

public class YearVO implements IsSerializable {

	private int id;

	private String Name;

	private Set<MonthVO> months;

	public int getId() {

		return id;

	}

	public void setId(int id) {

		this.id = id;

	}

	public String getName() {

		return Name;

	}

	public void setName(String name) {

		Name = name;

	}

	public Set<MonthVO> getMonths() {

		return months;

	}

	public void setMonths(Set<MonthVO> months) {

		this.months = months;

	}

	public YearVO() {

	}

	public YearVO(int id, String name) {

		this.id = id;

		this.Name = name;

	}

	@Override
	public boolean equals(Object obj) {

		return (getId() == ((YearVO) obj).getId());

	}

	@Override
	public int hashCode() {

		return 1;

	}

	@Override
	public String toString() {

		return ("id : " + id);

	}

}
